import turtle

# 设置画布
screen = turtle.Screen()
screen.title("画个狮子")
screen.bgcolor("white")

# 创建画笔
pen = turtle.Turtle()
pen.speed(2)

# 绘制狮子的头部
pen.penup()
pen.goto(0, -50)
pen.pendown()
pen.circle(50)

# 绘制狮子的耳朵
pen.penup()
pen.goto(-40, 20)
pen.pendown()
pen.circle(20)
pen.penup()
pen.goto(40, 20)
pen.pendown()
pen.circle(20)

# 绘制狮子的眼睛
pen.penup()
pen.goto(-20, 10)
pen.pendown()
pen.dot(10)
pen.penup()
pen.goto(20, 10)
pen.pendown()
pen.dot(10)

# 绘制狮子的鼻子
pen.penup()
pen.goto(0, -10)
pen.pendown()
pen.dot(15)

# 绘制狮子的嘴巴
pen.penup()
pen.goto(-20, -30)
pen.pendown()
pen.right(90)
pen.forward(40)
pen.left(90)
pen.forward(20)
pen.left(90)
pen.forward(40)

# 绘制狮子的鬃毛
pen.penup()
pen.goto(-50, -50)
pen.pendown()
pen.right(45)
pen.forward(100)
pen.backward(100)
pen.left(90)
pen.forward(100)
pen.backward(100)
pen.left(45)
pen.forward(70)
pen.backward(70)
pen.right(90)
pen.forward(70)
pen.backward(70)

# 隐藏画笔
pen.hideturtle()

# 保持窗口打开
turtle.done()
